<%--
  Created by IntelliJ IDEA.
  User: 86188
  Date: 2022/6/9
  Time: 17:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>板块 详情</title>
</head>
<body>
<div>
    <h1>欢迎使用 ！ 用户 : ${user.userName}</h1>
    <a href="/logout" role="button">退出登录</a>
</div>
<div>
    <c:if test="${not empty topicList}">
        <c:forEach items="${topicList}" var="topic">
            <a href="/post/getPostByTopicId?topicId=${topic.topicId}" >
                <h2>${topic.topicTitle}</h2>
                <div>
                    <span>作者：${topic.user.userName}</span>
                    <span>创建时间：${topic.createTime}</span>
                    <span>访问数量：${topic.topicView}</span>
                    <span>回复数：${topic.topicReplies}</span>
                    <span>所属板块：${topic.board.name}</span>
                </div>
            </a>
        </c:forEach>
    </c:if>
</div>

</body>
</html>
